package com.oracle.service.imp;

import com.oracle.mapper.GirlMapper;
import com.oracle.service.IGirlService;
import com.oracle.vo.Girl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

/**
 * @program: CampusMatching
 * @description:
 * @author: zhaolei
 * @create: 2020-07-25 10:35
 **/
@Service
public class GirlServiceImp implements IGirlService {

    @Autowired
    GirlMapper girlMapper;


    @Override
    public List<Girl> getGirlBySchool(String bschool) {
        List<Girl> list=girlMapper.getGirlBySchool(bschool);
        return list;
    }

    @Override
    public List<Girl> getGirlByBirthday(Date bbirthday) {
        List<Girl> list=girlMapper.getGirlByBirthday(bbirthday);
        return list;
    }

    @Override
    public List<Girl> getGirlByHobby(String bhobby) {
        System.out.println("准备进库");
        List<Girl> list=girlMapper.getGirlByHobby(bhobby);
        return list;
    }

    @Override
    public List<Girl> getAllGirl() {
        List<Girl> list=girlMapper.getGirlAll();
        return list;
    }

    @Override
    public List<Girl> getLyf() {
        List<Girl> list = girlMapper.getlyf("刘亦菲");
        return list;
    }
}
